import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import * as getters from './getters'
import * as mutations from './mutation'
import * as actions from './actions'

Vue.use(Vuex)

const state = {
    isAuthenticated: false, //是否认证
    user: {

    },
    token: {}
}
const plugins = [
    createPersistedState()
]
export default new Vuex.Store({
    modules: {},
    state,
    mutations,
    actions,
    getters,
    plugins,
})